package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ydd_user")
public class YddUser implements Serializable {
    private static final long serialVersionUID = 1L;

    //用户ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //用户名
    private String username;

    //手机号
    private String mobile;

    //0是男，1是女
    private Integer sex;

    //密码
    private String password;

    //用户头像
    private String icon;

    //个性描述
    private String notes;

    //出生年月
    private String birthday;

    //现居住地址
    private String address;

    //是否为默认数据，null表示不是，1表示是
    private String default_data;
}
